<?php
class StoreFront
{
	public $mContentsCell = 'blank.tpl';
	public $mSiteUrl;
	
	// Class constructor
	public function __construct()
	{
		$this->mSiteUrl = Link::Build('');
	}
	
	public function init()
	{
		if (isset($_GET['MenuId']))
		{
			$menuId = $_GET['MenuId'];
			if ($menuId == 1)
			{
				$this->showHome();
			}
			if ($menuId == 2)
			{
				$this->showNews();
			}
			if ($menuId == 3)
			{
				$this->showShop();
			}
			if ($menuId == 4)
			{
				$this->showContact();
			}
		}
        else
        {
            $this->showHome();
        }
	}
	
	public function showHome()
	{
		$this->mContentsCell = 'home.tpl';
	}
	
	public function showNews()
	{
		$this->mContentsCell = 'news.tpl';
		
	}
	
	public function showShop()
	{
		$this->mContentsCell = 'shop.tpl';
		
	}
	
	public function showContact()
	{
		$this->mContentsCell = 'contact.tpl';
	}
}
?>